﻿
using Logistics.Setup;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;

namespace Logistics.Setup
{
    public interface IRoleAppService : IApplicationService
    {
        //显示
        Task<PagedResultDto<RoleDto>> GetRoleAsync(GetRoleListDto dto);
        //删除
        Task DeleteAsync(int id);
        //批量删除
        int DeletePdeleteAsync(string ids);
        //添加
        Task<RoleDto> CreateAddAsync(CreateRoleDto input);
        /// <summary>
        /// 反填
        /// </summary>
        Task<RoleDto> GetAsync(int id);
        //修改
        Task UpdateAsync(int id,UpdateRoleDto input);
        //角色下拉框
        List<rxlDto> GetRoleslx();

        //获取权限
        List<JurisdictionDto> GetJurisdictions();

        //分配权限
        int PostRolePower(int id, string ids);

        List<RoleLinkPowerDto> GetRolePower(int id);


    }
}
